﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.kflwyg
{
    public class UpdatePayRollDetailParam : AddPayRollDetailParam
    {
        public int id { get; set; }
        public string project_code { get; set; }
        public string corp_code { get; set; }
        public string corp_name { get; set; }
    }

    public class AddPayRollDetailParam
    {
        /// <summary>
        /// 工资单编码。关联工资单表中的工资单编码
        /// </summary>
        public string pay_roll_code { get; set; }

        /// <summary>
        /// 工人姓名
        /// </summary>
        public string worker_name { get; set; }

        /// <summary>
        /// 证件类型。参考数据字典：人员证件类型字典表
        /// </summary>
        public string idcard_type { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        public string idcard_number { get; set; }

        /// <summary>
        /// 出勤天数
        /// </summary>
        public int days { get; set; }

        /// <summary>
        /// 总工时。单位：小时
        /// </summary>
        public string work_hours { get; set; }

        /// <summary>
        /// 	工人工资卡号
        /// </summary>
        public string pay_roll_bank_card_number { get; set; }

        /// <summary>
        /// 工人工资卡银行代码, 参考银行代码字典表
        /// </summary>
        public string pay_roll_bank_code { get; set; }

        /// <summary>
        /// 工人工资卡开户行名称
        /// </summary>
        public string pay_roll_bank_name { get; set; }

        /// <summary>
        /// 工资代发银行卡号
        /// </summary>
        public string pay_bank_card_number { get; set; }

        /// <summary>
        /// 工资代发银行代码, 参考银行代码字典表
        /// </summary>
        public string pay_bank_code { get; set; }

        /// <summary>
        /// 工资代发开户行名称
        /// </summary>
        public string pay_bank_name { get; set; }

        /// <summary>
        /// 应发金额。单位：元
        /// </summary>
        public decimal total_pay_amount { get; set; }

        /// <summary>
        /// 	实发金额。单位：元
        /// </summary>
        public decimal actual_amount { get; set; }

        /// <summary>
        /// 是否是补发。参考数据字典：是否字典表
        /// </summary>
        public int is_back_pay { get; set; }

        /// <summary>
        /// 发放日期。格式yyyy-MM-dd
        /// </summary>
        public string balance_date { get; set; }

        /// <summary>
        /// 补发月份，如果是补发，此字段必填。格式yyyy-MM
        /// </summary>
        public string back_pay_month { get; set; }

        /// <summary>
        /// 第三方工资单编号
        /// </summary>
        public string third_pay_roll_code { get; set; }

        //"pay_roll_code": "P202006241807202005666",
        //"worker_name": "郑小乐",
        //"idcard_type": "1",
        //"idcard_number": "410203197403075639",
        //"days": 28,
        //"work_hours": 224.56,
        //"pay_roll_bank_card_number": "2342341111134234",
        //"pay_roll_bank_code": "102",
        //"pay_roll_bank_name": "中国工商银行开封xx分行",
        //"pay_bank_card_number": "12345678",
        //"pay_bank_code": "102",
        //"pay_bank_name": "中国工商银行开封分行",
        //"total_pay_amount": 4700,
        //"actual_amount": 4700,
        //"is_back_pay": 0,
        //"balance_date": "2020-06-17",
        //"back_pay_month": null,
        //"third_pay_roll_code": "S202006202257202008111"
    }
}
